/**
 * 弹窗配置
 * 用户管理 role-manage
 * 新增 role-manage-add
 */
export default {
  'role-manage': {
    'role-manage-add': {
      popTitle: '新增角色',
      popType: 'AddRole',
      visible: true,
      popConfig: {
        width: '70%',
        destroy: true,
        popType: 'add'
      }
    },
    'role-manage-search': {
      popTitle: '角色详情',
      popType: 'RoleDetail',
      visible: true,
      popConfig: {
        width: '70%',
        destroy: true,
        popType: 'detail'
      }
    },
    'rule-manage-edit': {
      popTitle: '编辑角色',
      popType: 'AddRole',
      visible: true,
      popConfig: {
        width: '70%',
        destroy: true,
        popType: 'edit'
      }
    },
    'role-manage-input': {
      popTitle: '导入角色',
      popType: 'AddFile',
      visible: true,
      popConfig: {
        width: '50%',
        hideFooterBtn: true,
        // 导入接口
        upLoadPath: '/energy-carbon/grass-core/role/upload',
        // 模板下载参数
        tplName: 'roleRenderer'
      }
    },
    'role-manage-user-look': {
      popTitle: '查看所属用户',
      popType: 'RoleManageUser',
      visible: true,
      popConfig: {
        hideFooterBtn: true,
        width: '50%',
        destroy: true
      }
    },
    'role-manage-user-edit': {
      popTitle: '编辑所属用户',
      popType: 'RoleManageUser',
      visible: true,
      popConfig: {
        width: '50%',
        destroy: true,
        popType: 'edit'
      }
    },
    'role-manage-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      confirmContent: '确认删除XXX的角色信息？',
      splitProp: 'roleName',
      paramsProp: { id: 'id' },
      path: 'roleManage.roleDelById'
    },
    'role-manage-deleteBatch': {
      showType: 'confirm',
      dataType: 'multipleList',
      confirmHeader: '提示',
      confirmContent: '确认批量删除XXX角色信息？',
      splitProp: 'roleName',
      paramsProp: { ids: 'id' },
      path: 'roleManage.batchDelete'
    }
  }
}
